-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The custom german spyware that is also a theme #1710
base: master
Are you sure you want to change the base?
Conversation
@@ -84,6 +100,7 @@ object SettingsAppearanceScreen : SearchableSettings { | |||
) | |||
} | |||
}, | |||
*customPreferenceItem.toTypedArray(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to use PreferenceGroup
instead of trying to change a persistent list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to make another PreferenceGroup
just for the custom theme. Or can you merge two PreferenceGroups
together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not, but perhaps
*customPreferenceItem.toTypedArray(), | |
Preference.PreferenceItem.TextPreference( | |
title = stringResource(MR.strings.pref_custom_color), | |
enabled = appTheme == AppTheme.CUSTOM, | |
subtitle = stringResource(MR.strings.custom_color_description), | |
onClick = { navigator.push(AppCustomThemeColorPickerScreen()) }, | |
), |
would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, seems like a good idea. Would've used mutableListOf
as another solution. Will try it when I get back home. thx seco
No description provided.